﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Electric.EntityFrameworkCore.DbMigrations.Migrations
{
    /// <inheritdoc />
    public partial class initCreate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ElePermission",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    Name = table.Column<string>(type: "TEXT", nullable: false),
                    Code = table.Column<string>(type: "TEXT", nullable: false),
                    Url = table.Column<string>(type: "TEXT", nullable: true),
                    Component = table.Column<string>(type: "TEXT", nullable: true),
                    Icon = table.Column<string>(type: "TEXT", nullable: true),
                    PermissionType = table.Column<int>(type: "INTEGER", nullable: false),
                    ApiMethod = table.Column<string>(type: "TEXT", nullable: false),
                    Sort = table.Column<int>(type: "INTEGER", nullable: false),
                    ParentId = table.Column<Guid>(type: "TEXT", nullable: true),
                    Status = table.Column<int>(type: "INTEGER", nullable: false),
                    Remark = table.Column<string>(type: "TEXT", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    CreatorId = table.Column<Guid>(type: "TEXT", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ElePermission", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleRole",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
                    NormalizedName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
                    ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: false),
                    Status = table.Column<int>(type: "INTEGER", nullable: false),
                    Remark = table.Column<string>(type: "TEXT", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    CreatorId = table.Column<Guid>(type: "TEXT", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRole", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleUser",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    UserName = table.Column<string>(type: "TEXT", nullable: false),
                    NormalizedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
                    Email = table.Column<string>(type: "TEXT", nullable: false),
                    NormalizedEmail = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
                    EmailConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
                    PasswordHash = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
                    SecurityStamp = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
                    ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: false),
                    PhoneNumber = table.Column<string>(type: "TEXT", nullable: true),
                    PhoneNumberConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
                    TwoFactorEnabled = table.Column<bool>(type: "INTEGER", nullable: false, defaultValue: false),
                    LockoutEnd = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
                    LockoutEnabled = table.Column<bool>(type: "INTEGER", nullable: false, defaultValue: false),
                    AccessFailedCount = table.Column<int>(type: "INTEGER", nullable: false),
                    FullName = table.Column<string>(type: "TEXT", nullable: true),
                    Status = table.Column<int>(type: "INTEGER", nullable: false),
                    Remark = table.Column<string>(type: "TEXT", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    CreatorId = table.Column<Guid>(type: "TEXT", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "TEXT", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUser", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleRoleClaim",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    RoleId = table.Column<Guid>(type: "TEXT", nullable: false),
                    ClaimType = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
                    ClaimValue = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRoleClaim", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EleRoleClaim_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleRolePermission",
                columns: table => new
                {
                    RoleId = table.Column<Guid>(type: "TEXT", nullable: false),
                    PermissionId = table.Column<Guid>(type: "TEXT", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    CreatorId = table.Column<Guid>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRolePermission", x => new { x.RoleId, x.PermissionId });
                    table.ForeignKey(
                        name: "FK_EleRolePermission_ElePermission_PermissionId",
                        column: x => x.PermissionId,
                        principalTable: "ElePermission",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EleRolePermission_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserClaim",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    UserId = table.Column<Guid>(type: "TEXT", nullable: false),
                    ClaimType = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
                    ClaimValue = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserClaim", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EleUserClaim_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserLogin",
                columns: table => new
                {
                    LoginProvider = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
                    UserId = table.Column<Guid>(type: "TEXT", nullable: false),
                    ProviderKey = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
                    ProviderDisplayName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserLogin", x => new { x.UserId, x.LoginProvider });
                    table.ForeignKey(
                        name: "FK_EleUserLogin_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserRole",
                columns: table => new
                {
                    UserId = table.Column<Guid>(type: "TEXT", nullable: false),
                    RoleId = table.Column<Guid>(type: "TEXT", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
                    CreatorId = table.Column<Guid>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserRole", x => new { x.UserId, x.RoleId });
                    table.ForeignKey(
                        name: "FK_EleUserRole_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EleUserRole_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserToken",
                columns: table => new
                {
                    UserId = table.Column<Guid>(type: "TEXT", nullable: false),
                    LoginProvider = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
                    Name = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
                    Value = table.Column<string>(type: "TEXT", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserToken", x => new { x.UserId, x.LoginProvider, x.Name });
                    table.ForeignKey(
                        name: "FK_EleUserToken_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "ElePermission",
                columns: new[] { "Id", "ApiMethod", "Code", "Component", "CreationTime", "CreatorId", "Icon", "LastModificationTime", "LastModifierId", "Name", "ParentId", "PermissionType", "Remark", "Sort", "Status", "Url" },
                values: new object[,]
                {
                    { new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), "GET", "system", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9292), new Guid("00000000-0000-0000-0000-000000000000"), "el-icon-s-tools", null, new Guid("00000000-0000-0000-0000-000000000000"), "系统管理", null, 0, null, 0, 1, null },
                    { new Guid("42b6826f-f161-44f4-b633-8621997e236b"), "GET", "system.role", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9337), new Guid("00000000-0000-0000-0000-000000000000"), "peoples", null, new Guid("00000000-0000-0000-0000-000000000000"), "角色管理", new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), 0, null, 0, 1, null },
                    { new Guid("5514b42a-1315-4a03-8030-cb856bcacda2"), "GET", "system.rolepermission.update", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9414), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "更新", new Guid("623c0c56-65b0-4fc3-9882-ada9abfd3e0f"), 1, null, 0, 1, null },
                    { new Guid("5c418777-f05c-4832-ba75-acf5cd1b01bd"), "GET", "system.user", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9333), new Guid("00000000-0000-0000-0000-000000000000"), "el-icon-user-solid", null, new Guid("00000000-0000-0000-0000-000000000000"), "用户管理", new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), 0, null, 0, 1, null },
                    { new Guid("623c0c56-65b0-4fc3-9882-ada9abfd3e0f"), "GET", "system.rolepermission", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9341), new Guid("00000000-0000-0000-0000-000000000000"), "example", null, new Guid("00000000-0000-0000-0000-000000000000"), "角色权限", new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), 0, null, 0, 1, null },
                    { new Guid("872192cd-e277-4140-8d3c-0a807e480ae1"), "GET", "system.role.delete", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9361), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("42b6826f-f161-44f4-b633-8621997e236b"), 1, null, 0, 1, null },
                    { new Guid("875e472b-944b-41c1-8013-6944a61fdc7e"), "GET", "system.permission.add", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9367), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("9fbccdb5-73fe-4dba-8f80-bf7c2dcb42f1"), 1, null, 0, 1, null },
                    { new Guid("8b4be533-3d99-4eaf-b602-5144a932784f"), "GET", "system.user.add", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9347), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("5c418777-f05c-4832-ba75-acf5cd1b01bd"), 1, null, 0, 1, null },
                    { new Guid("9518eda8-7cf9-4934-82c8-f877bb2db8e6"), "GET", "system.user.edit", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9350), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("5c418777-f05c-4832-ba75-acf5cd1b01bd"), 1, null, 0, 1, null },
                    { new Guid("9fbccdb5-73fe-4dba-8f80-bf7c2dcb42f1"), "GET", "system.permission", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9340), new Guid("00000000-0000-0000-0000-000000000000"), "list", null, new Guid("00000000-0000-0000-0000-000000000000"), "菜单管理", new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), 0, null, 0, 1, null },
                    { new Guid("a594b073-39eb-46aa-aaed-7c5fecda4c97"), "GET", "system.user.delete", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9352), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("5c418777-f05c-4832-ba75-acf5cd1b01bd"), 1, null, 0, 1, null },
                    { new Guid("b7eef4cd-3b74-4d2c-95e6-6e09ad38c90b"), "GET", "system.permission.delete", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9410), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("9fbccdb5-73fe-4dba-8f80-bf7c2dcb42f1"), 1, null, 0, 1, null },
                    { new Guid("b92201ce-f30c-45c1-8f73-6dce7910f026"), "GET", "system.role.add", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9355), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("42b6826f-f161-44f4-b633-8621997e236b"), 1, null, 0, 1, null },
                    { new Guid("cdcda4ed-a23a-4dcb-9779-42ad7e6ea10c"), "GET", "system.permission.edit", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9370), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("9fbccdb5-73fe-4dba-8f80-bf7c2dcb42f1"), 1, null, 0, 1, null },
                    { new Guid("dacf234b-a9a2-4860-9e0f-a425795d4ac4"), "GET", "system.role.edit", null, new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9358), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("42b6826f-f161-44f4-b633-8621997e236b"), 1, null, 0, 1, null }
                });

            migrationBuilder.InsertData(
                table: "EleRole",
                columns: new[] { "Id", "ConcurrencyStamp", "CreationTime", "CreatorId", "LastModificationTime", "LastModifierId", "Name", "NormalizedName", "Remark", "Status" },
                values: new object[] { new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), "a5f917ce15d647cb9c1bab79924bf4ab", new DateTime(2024, 2, 7, 9, 11, 27, 510, DateTimeKind.Local).AddTicks(59), new Guid("00000000-0000-0000-0000-000000000000"), null, new Guid("00000000-0000-0000-0000-000000000000"), "管理员", "管理员", null, 1 });

            migrationBuilder.InsertData(
                table: "EleUser",
                columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "CreationTime", "CreatorId", "Email", "EmailConfirmed", "FullName", "LastModificationTime", "LastModifierId", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "Remark", "SecurityStamp", "Status", "UserName" },
                values: new object[] { new Guid("a1d7d117-f765-4b49-abb7-bb8c4d357870"), 0, "05887edb35ab4921b3220e4b5aca5075", new DateTime(2024, 2, 7, 9, 11, 27, 510, DateTimeKind.Local).AddTicks(206), new Guid("00000000-0000-0000-0000-000000000000"), "admin@eletric.com", true, "管理员", null, new Guid("00000000-0000-0000-0000-000000000000"), null, "ADMIN@ELETRIC.COM", "ADMIN", "AQAAAAIAAYagAAAAENLSDo0VxzbLsM3YVXtkVh7/1SrEQu/rXZB0pLThE9sqax7NYbfbfc/VBYUhR+nqOA==", null, false, null, "5fd042f9-70f8-41eb-b711-ddec43a287af", 1, "admin" });

            migrationBuilder.InsertData(
                table: "EleRolePermission",
                columns: new[] { "PermissionId", "RoleId", "CreationTime", "CreatorId" },
                values: new object[,]
                {
                    { new Guid("242a5b18-fa79-44dc-89e7-13b3f577d798"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9467), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("42b6826f-f161-44f4-b633-8621997e236b"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9473), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("5514b42a-1315-4a03-8030-cb856bcacda2"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9483), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("5c418777-f05c-4832-ba75-acf5cd1b01bd"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9472), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("623c0c56-65b0-4fc3-9882-ada9abfd3e0f"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9474), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("872192cd-e277-4140-8d3c-0a807e480ae1"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9480), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("875e472b-944b-41c1-8013-6944a61fdc7e"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9481), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("8b4be533-3d99-4eaf-b602-5144a932784f"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9476), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("9518eda8-7cf9-4934-82c8-f877bb2db8e6"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9476), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("9fbccdb5-73fe-4dba-8f80-bf7c2dcb42f1"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9474), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("a594b073-39eb-46aa-aaed-7c5fecda4c97"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9477), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("b7eef4cd-3b74-4d2c-95e6-6e09ad38c90b"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9482), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("b92201ce-f30c-45c1-8f73-6dce7910f026"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9478), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("cdcda4ed-a23a-4dcb-9779-42ad7e6ea10c"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9481), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("dacf234b-a9a2-4860-9e0f-a425795d4ac4"), new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9479), new Guid("00000000-0000-0000-0000-000000000000") }
                });

            migrationBuilder.InsertData(
                table: "EleUserRole",
                columns: new[] { "RoleId", "UserId", "CreationTime", "CreatorId" },
                values: new object[] { new Guid("cce14f0a-78d0-4d04-a320-d53165070f24"), new Guid("a1d7d117-f765-4b49-abb7-bb8c4d357870"), new DateTime(2024, 2, 7, 9, 11, 27, 573, DateTimeKind.Local).AddTicks(9231), new Guid("00000000-0000-0000-0000-000000000000") });

            migrationBuilder.CreateIndex(
                name: "IX_ElePermission_CreationTime",
                table: "ElePermission",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleRole_CreationTime",
                table: "EleRole",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleRole_NormalizedName",
                table: "EleRole",
                column: "NormalizedName");

            migrationBuilder.CreateIndex(
                name: "IX_EleRoleClaim_RoleId",
                table: "EleRoleClaim",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_EleRolePermission_PermissionId",
                table: "EleRolePermission",
                column: "PermissionId");

            migrationBuilder.CreateIndex(
                name: "IX_EleRolePermission_RoleId_PermissionId",
                table: "EleRolePermission",
                columns: new[] { "RoleId", "PermissionId" });

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_CreationTime",
                table: "EleUser",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_Email",
                table: "EleUser",
                column: "Email");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_NormalizedEmail",
                table: "EleUser",
                column: "NormalizedEmail");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_NormalizedUserName",
                table: "EleUser",
                column: "NormalizedUserName");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_UserName",
                table: "EleUser",
                column: "UserName");

            migrationBuilder.CreateIndex(
                name: "IX_EleUserClaim_UserId",
                table: "EleUserClaim",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_EleUserLogin_LoginProvider_ProviderKey",
                table: "EleUserLogin",
                columns: new[] { "LoginProvider", "ProviderKey" });

            migrationBuilder.CreateIndex(
                name: "IX_EleUserRole_RoleId_UserId",
                table: "EleUserRole",
                columns: new[] { "RoleId", "UserId" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EleRoleClaim");

            migrationBuilder.DropTable(
                name: "EleRolePermission");

            migrationBuilder.DropTable(
                name: "EleUserClaim");

            migrationBuilder.DropTable(
                name: "EleUserLogin");

            migrationBuilder.DropTable(
                name: "EleUserRole");

            migrationBuilder.DropTable(
                name: "EleUserToken");

            migrationBuilder.DropTable(
                name: "ElePermission");

            migrationBuilder.DropTable(
                name: "EleRole");

            migrationBuilder.DropTable(
                name: "EleUser");
        }
    }
}
